﻿<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<b>
帖子以及相关回复被删除后无法恢复，请确认删除帖子【
<c:if test="${requestScope.questionName == null}">
<%=request.getParameter("questionName")%>
</c:if>
<c:if test="${requestScope.questionName != null}">
<c:out value="${requestScope.questionName}"/>
</c:if>
】:
</b>
<html:form action="/life" method="post" onsubmit="return validate(this);">
    <input type="hidden" name="action" value="deleteafterconfirm"/>
    <html:hidden property="id"/>
    <input type="hidden" name="from" value="<c:out value="${param.from}"/>"/>
    <c:if test="${requestScope.canDelete == null}">
    <input type="hidden" name="canDelete" value='<%=request.getParameter("canDelete")%>'/>
    </c:if>
    <c:if test="${requestScope.canDelete != null}">
    <input type="hidden" name="canDelete" value="<c:out value="${requestScope.canDelete}"/>"/>
    </c:if>
    <c:if test="${requestScope.questionName == null}">
    <input type="hidden" name="questionName" value='<%=request.getParameter("questionName")%>'/>
    </c:if>
    <c:if test="${requestScope.questionName != null}">
    <input type="hidden" name="questionName" value="<c:out value="${requestScope.questionName}"/>"/>
    </c:if>

    验证码:<input type="text" name="vc" size="4"/>
    <img src="<%=request.getContextPath()%>/vcimg" width="40" height="20" border="0"/>
    &nbsp;&nbsp;&nbsp;
    <input type="submit" name="delSubmitButt" value="确认删除"/>
</html:form>
<html:link href="life.mrqa?action=get" paramId="id" paramName="questionf" paramProperty="id">返回</html:link>
<script type="text/javascript">
    document.questionf[1].vc.focus();
    function validate(pForm)
    {
        var vc = pForm.vc.value;
        if(vc == "")
        {
            alert("请输入[验证码]");
            pForm.vc.focus();
            return false;
        }
        pForm.delSubmitButt.disabled = true;
        pForm.delSubmitButt.value = "正在删除此帖子...请稍等";
        return true;
    }
</script>    